<?php 
header('Content-Type:application/json');

$conn= mysqli_connect('127.0.0.1','root','123456','flower','3306');
mysqli_query($conn,'SET NAMES  UTF8');

$num=$_GET['num'];
$sql = "SELECT  * FROM  flowers  WHERE  id='$num'";
$result = mysqli_query($conn,$sql);

echo(json_encode(mysqli_fetch_array($result)));

 ?>